<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );

require_once(  $mainframe->getPath( 'toolbar_html' ) );
$task = mosGetParam( $_REQUEST, 'task', false);

switch($task)
{
    case 'config':
    case 'applycnf':
        require_once( 'components/com_jp/joomlaequipment.config.php');
        JEConfig::Toolbar();
    break;

    case 'reports':
        jpToolBar::onlycontrol();
    break;
    case 'editpage':
    case 'applypage':
    case 'addskip':
        jpToolBar::editpage();
    break;

    case 'hidepagesitemap':
    case 'hidepage':
    case 'clear':
    case 'getrank':
    case 'remove':
    case 'pagerank':    
    case 'index':
    case 'savepage':
    case 'cancelpage':
    case 'noindex':
    case 'follow':
    case 'nofollow':            
    case 'accept':
    case 'publish':
    case 'unpublish':
    case 'optimize':
        jpToolBar::optimize();
    break;

    case 'scan':
    case 'removesimulation':
        jpToolBar::index();
    break;
    
    case 'gsm':    
    case 'updateXML':
    case 'google':
        jpToolBar::google();
    break;
    case 'newsimulate':
        jpToolBar::newsimulate();
    break;
    case 'doindex':
    default:
        jpToolBar::_default();
}

?>